package cn.com.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.com.beans.SalaryInfo;
import cn.com.mapper.SalaryInfoMapper;
import cn.com.service.SalaryInfoService;
@Service
public class SalaryInfoServiceImpl implements SalaryInfoService{

    @Resource
    private SalaryInfoMapper salaryInfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer saId) {
        return salaryInfoMapper.deleteByPrimaryKey(saId);
    }

    @Override
    public int insert(SalaryInfo record) {
        return salaryInfoMapper.insert(record);
    }

    @Override
    public int insertSelective(SalaryInfo record) {
        return salaryInfoMapper.insertSelective(record);
    }

    @Override
    public SalaryInfo selectByPrimaryKey(Integer saId) {
        return salaryInfoMapper.selectByPrimaryKey(saId);
    }

    @Override
    public int updateByPrimaryKeySelective(SalaryInfo record) {
        return salaryInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SalaryInfo record) {
        return salaryInfoMapper.updateByPrimaryKey(record);
    }

    @Override
    public int findMoneyByCoidAndYear(Integer coId,Integer year) {
        return salaryInfoMapper.findMoneyByCoidAndYear(coId,year);
    }

}
